home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_0399 / 167 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.8 KB

  1. From: Stephen Usher <steve@earth.ox.ac.uk>
  2. Subject: Re: seduid scripts
  3. Date: Tue, 23 Mar 93 8:06:14 BST
  4. In-Reply-To: <9303230511.AA23591@netcom4.netcom.com>; from "Eric R. Smith" at Mar 22, 93 9:11 pm
  5.  
  6. >Basically, because we already have one path separator (\). Introducing
  7. >another one is messy, especially since GEMDOS has historically allowed
  8. >/ in file names (indeed many users have files with names like
  9. >"2/12/92". I realize that Unix aware people would never do such a silly
  10. >thing, but unfortunately lots of ST users are not Unix aware. If I were
  11. >designing TOS from scratch I would use / as the path separator, but
  12. >unfortunately it's much too late for that.
  13.  
  14. This is true for all cases except this one. #! is a derivative of Unix, it
  15. has nothing to do with TOS, scripts with it at the top assume they are
  16. running under Unix, hence they will not be refering to filenames with
  17. forward slashes in them.
  18.  
  19. >Also, by not using / for anything in the kernel, we provide a way to
  20. >represent Unix file names containing \; namely, a Posix library could
  21. >simply swap / and \ everywhere they occur in file names..
  22.  
  23. This is not the case here, for a library exec to do what you ask it will
  24. have to read the file header, rewrite it, call exec and then somehow change
  25. it back again! This is a specific case where "it should be in the library"
  26. doesn't work.
  27.  
  28. The #! line should be thought of as the file's magic number, it tells the
  29. kernel what type of executable it is, and hence what to do with it. It is a
  30. special case.
  31.  
  32. Steve
  33.  
  34. -- 
  35. ---------------------------------------------------------------------------
  36. Computer Systems Administrator, Dept. of Earth Sciences, Oxford University.
  37. E-Mail: steve@uk.ac.ox.earth (JANET) steve@earth.ox.ac.uk (Internet).
  38. Tel:- Oxford (0865) 282110 (UK) or +44 865 282110 (International).
  39.